projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
333f357
)
(Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Tue, 9 Jan 2007 08:53:26 +0000
(08:53 +0000)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Tue, 9 Jan 2007 08:53:26 +0000
(08:53 +0000)
around mkstemp.
src/callproc.c
patch
|
blob
|
history
diff --git
a/src/callproc.c
b/src/callproc.c
index c56d2fb679bacf12e7b33070e159eacaa50b1a2a..6cbc0cf124fbdee2ee10409a75ed9e331f5a8ed8 100644
(file)
--- a/
src/callproc.c
+++ b/
src/callproc.c
@@
-1104,7
+1104,11
@@
usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r
#ifdef HAVE_MKSTEMP
{
- int fd = mkstemp (tempfile);
+ int fd;
+
+ BLOCK_INPUT;
+ fd = mkstemp (tempfile);
+ UNBLOCK_INPUT;
if (fd == -1)
report_file_error ("Failed to open temporary file",
Fcons (Vtemp_file_name_pattern, Qnil));